<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        for(var i=0;i<6;i++){
            for(var x=0;x<(5-i);x++){
                document.write("&nbsp&nbsp;");
            }
            for(var j=0;j<x*i+1;j++){
                document.write("*"+"&nbsp&nbsp;");
            }
            document.write("<br /");
        }
        for(var i=1;i<=4;i++){
            for(var j=1;j<=4-i;j++){
                document.write("&ensp;");
            }
            for(var k=1;k<=2*i-1;k++){
                document.write("*");
            }
            document.write("<br />");
            
        }
        for(var i=1;i<=3;i++){
            for(var j=1;j<=i;j++){
                document.write("&ensp;");
            }
            for(var k=1;k<=7-2*i;k++){
                document.write("*");
            }
            document.write("<br />");
        }
    </script>
 
</body>
</html>